<%
	name = "";

	String selection = "";
	String visa_1 = "";
	String visa_2 = "";
	String visa_3 = "";
	String amex_1 = "";
	String amex_2 = "";
	
	if(c_outlet != null) {
		name = c_outlet.getOutlet().getName();
		if(c_outlet.getOutlet().getStatementOpt().length() > 0) {
			JSONObject obj = (JSONObject) JSONValue.parse(c_outlet.getOutlet().getStatementOpt());

			visa_1 = (obj.get("visa_1") == null) ? "" : obj.get("visa_1").toString();
			visa_2 = (obj.get("visa_2") == null) ? "" : obj.get("visa_2").toString();
			visa_3 = (obj.get("visa_3") == null) ? "" : obj.get("visa_3").toString();
			
			amex_1 = obj.get("amex_1") == null ? "" : obj.get("amex_1").toString();
			amex_2 = obj.get("amex_2") == null ? "" : obj.get("amex_2").toString();
		}
	}
%>
<div class="row-fluid page">
	<div class="span12">

		<div class="section-header"><%= name %> - Statement Option</div>
		<div class="row-fluid outlet-main-content">
			<div class="span12">
				<div class="form-horizontal" style="padding:0px 30px">
					<table style="width:100%">
						<tr>
							<td class="title" colspan="2">
								Merchant Statement Option 
								<a class="link" data-type="visa_master" href="javascript:;" onclick="outlet.statement_option_reset(this)">Deselect Visa/Master/Amex Statement</a>
							</td>
						</tr>
						<tr>
							<td style="width:40%"><label class="radio inline-block"><input type="radio" name="visa_1" value="By Merchant Portal Service" <%= visa_1.equals("By Merchant Portal Service") ? "checked" : "" %> />By Merchant Portal Service</label></td>
							<td style="width:60%">Email Address <input type="text" id="visa_2" style="margin-left:20px" value="<%= visa_2 %>" /></td>
						</tr>
						<tr>
							<td></td>
							<td>Email Address <input type="text" id="visa_3" style="margin-left:20px" value="<%= visa_3 %>" /></td>
						</tr>
						<tr>
							<td><label class="radio inline-block"><input type="radio" name="visa_1" value="By M2E Service" <%= visa_1.equals("By M2E Service") ? "checked" : "" %> />By M2E Service</label></td>
							<td></td>
						</tr>
						<tr>
							<td><label class="radio inline-block"><input type="radio" name="visa_1" value="By e-Commerce Report" <%= visa_1.equals("By e-Commerce Report") ? "checked" : "" %> />By e-Commerce Report</label></td>
							<td></td>
						</tr>					
						<tr>
							<td class="title" colspan="2" style="padding-top:50px">
								Amex Statement Option 
								<a class="link" data-type="amex" href="javascript:;" onclick="outlet.statement_option_reset(this)">Deselect Amex Statement Option Only</a>
							</td>
						</tr>
						<tr>
							<td><label class="radio inline-block"><input type="radio" name="amex_1" value="By Online Merchant Services" <%= amex_1.equals("By Online Merchant Services") ? "checked" : "" %> />By Online Merchant Services</label></td>
							<td>Email Address <input type="text" id="amex_2" style="margin-left:20px" value="<%= amex_2 %>" /></td>
						</tr>
					</table>
				</div>
			</div>
			
		</div>

	</div>
</div>